<!-- 添加用户 -->
<template>
  <div class="add-user">
      <el-form :model="fm">
        <el-form-item label="姓 名">
          <el-input v-model="fm.name"></el-input>
        </el-form-item>
        
        <el-form-item label="年 龄">
          <el-input v-model="fm.age"></el-input>
        </el-form-item>

        
        <el-form-item label="性 别">
          <el-radio-group v-model="fm.sex">
            <el-radio label="先生"></el-radio>
            <el-radio label="女士"></el-radio>
          </el-radio-group>
        </el-form-item>

        <el-form-item>
          <el-button type="primary" @click="onSubmit">立即创建</el-button>
          <el-button>取消</el-button>
        </el-form-item>
      </el-form>
 </div>
</template>

<script>
export default {
  name: 'addUser',
  data() { 
    return {
      fm: {
        name: '',
        age: '',
        sex: 1
      }
    }
  },
  methods:{
    onSubmit(){
      
    }
  },
 }
</script>

<style scoped>

</style>